# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-vcrpy
pkgver=4.2.0
pkgrel=0
pkgdesc="Automatically mock your HTTP interactions to simplify and speed up testing"
options="!check" # Tests fail on the builders
url="https://github.com/kevin1024/vcrpy"
arch="noarch"
license="MIT"
depends="py3-yarl py3-yaml py3-six py3-wrapt"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-httpbin"
source="https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-$pkgver.tar.gz"
builddir="$srcdir/vcrpy-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# ssl errors when test_requests.py is run
	python3 -m pytest --deselect=tests/integration/test_requests.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
46ca84ef337e5d6131aa00585523711071062bf71e8f8e3e301ba65fc1ebedacaa5f925dc06cbabc3c5949ba2643ed3f4250155bcf49e43f88159344e365a1e4  vcrpy-4.2.0.tar.gz
"
